home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Agent Central Host Computer
/
Agent - Central Host Computer.iso
/
_SETUP.1
/
mrreconcile.sql
< prev
next >
Wrap
Text File
|
2000-05-12
|
1KB
|
38 lines
/* RCSVER $Id: mrreconcile.sql,v 1.2 2000-02-18 16:19:58-06 randy Exp $ */
/* *************************************************************************
* Copyright (C) 1998, Agent Systems, Inc. All Rights Reserved.
*
* Name: mrreconcile
* Date: 09/01/1999
* memo: Randy Wood
* Description: Create the mrreconcile view. This view contains data from
* moneyroom counts with and without adjustments.
* Changes:
************************************************************************* */
CREATE OR REPLACE VIEW mrreconcile AS SELECT
mrpend.subbatch_seq,
mrpend.prpend_indx,
subbatch.coin_one pennies,
subbatch.coin_two nickels,
subbatch.coin_three dimes,
subbatch.coin_four quarters,
subbatch.coin_five half_dollars,
subbatch.coin_six dollar_coin,
subbatch.coin_total_value,
subbatch.bill_one ones,
subbatch.bill_two fives,
subbatch.bill_three tens,
subbatch.bill_four twenties,
subbatch.receipt_total bill_total,
subbatch.grand_total,
subbatch.label_c orig_cashbox_glid,
cashboxtotals.count_date,
cashboxtotals.cashbox_glid,
cashboxtotals.coin_total adj_coin_total,
cashboxtotals.bill_total adj_bill_total,
cashboxtotals.grand_total adj_grand_total
FROM mrpend, subbatch, cashboxtotals
WHERE
subbatch.subbatch_seq = mrpend.subbatch_seq AND
cashboxtotals.cashbox_total_seq = mrpend.subbatch_seq;